﻿using System.Windows.Controls;

namespace QDP.Platform.Silverlight
{
    /// <summary>
    /// 
    /// </summary>
    public sealed class ChildWidget
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="UI"></param>
        /// <param name="parent"></param>
        /// <param name="Title"></param>
        /// <param name="Icon"></param>
        /// <param name="Dock"></param>
        public static void Show(UserControl UI
            , UserControl parent = null
            , string Title = ""
            , string Icon = ""
            , WidgetDock Dock = WidgetDock.Default)
        {
            Tasker.ChildShow(UI, parent, Title, Icon, Dock);
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="ui"></param>
        public static void Close(UserControl ui)
        {
            Tasker.ChildClose(ui);
        }
    }
}